using System;
using System.Collections.Generic;
using UnityEngine;

public class HintAnimation : MonoBehaviour
{
	private void Update()
	{
		float value = Mathf.Abs(Mathf.Sin(Time.time * 3.14159274f)) / 2f;
		List<BoxWidgetHandler> boxWidgets = base.GetComponent<BoxRootWidgetHandler>().boxWidgets;
		foreach (BoxWidgetHandler boxWidgetHandler in boxWidgets)
		{
			Renderer component = boxWidgetHandler.gameObject.GetComponent<Renderer>();
			component.material.SetFloat("_Alpha", value);
		}
	}
}
